﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Priview.aspx.cs" Inherits="newBlog.admin.User.User_Priview" %>

<%@ Import Namespace="newBlog.CenterInc.Ctrltor" %>
<%@ Import Namespace="newBlog.CenterInc.tool" %>
<%@ Import Namespace="newBlog.CenterInc.model" %>
<%@ Register Src="~/model/allLink.ascx" TagPrefix="uc1" TagName="allLink" %>
<%       
    Grade_inc grade_Inc = new Grade_inc();
    List<Grade_Dao> list = grade_Inc.gradeList();
    int count = list.Count;
    int i = 0;


%>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户预览-<%=Application["title"] %></title>
    <meta name="description" content="<%=Application["content"] %>">
    <meta name="keywords" content="<%=Application["key"] %>">
    <uc1:allLink runat="server" ID="allLink" />
    <script src="/js/admin/User_preview.js?<%=DateTime.Now.ToString("yyyyMMddHHmmssffff") %>"></script>
    <script>
        RenderForm('select');
    </script>
</head>
<body>
    <div class="layui-row">
        <div class="layui-col-md">
            <div class="layui-panel margin0 layui-clear">
                <div class="layui-row layui-col-space5 margin0">



                    <div class="layui-col-md1 layui-form  layui-col-md-offset6">
                        <select id="UserGrade" lay-verify="" lay-search>
                            <option value="">权限</option>
                            <%
                                for (; i < count; i++)
                                {
                            %>
                            <option value="<%=list[i].Id %>"><%=list[i].Name %></option>
                            <%
                                }
                            %>
                        </select>

                    </div>

                    <div class="layui-col-md3">
                        <input type="text" id="user_name" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                    </div>
                    <div class="layui-col-md1">
                        <button type="button" class="layui-btn layui-btn-primary layui-border-blue layui-btn-fluid" onclick="Search_UserMsg()">
                            <i class="layui-icon layui-icon-search"></i>
                        </button>
                    </div>
                    <div class="layui-col-md1">
                        <button type="button" class="layui-btn layui-btn-primary layui-btn-fluid">
                            <i class="layui-icon layui-icon-refresh"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--顶部操作面板-->
    <div class="layui-row RowSpace layui-col-space10 margin0">
        <div class="layui-col-md1 layui-col-xs3 ">
            <button type="button" class="layui-btn layui-btn-fluid" onclick="getSelectedRowMsgDel()">删除选中</button>
        </div>
        <div class="layui-col-md1 layui-col-xs3">
            <button type="button" class="layui-btn layui-btn-fluid" onclick="getSelectedRowMsgMove()">设置为</button>
        </div>
        <div class="layui-col-md2 layui-col-xs3 layui-form">
            <select id="MoveGrade" lay-verify="" lay-search>
                <option value="">权限</option>
                <%
                    i = 0;
                    for (; i < count; i++)
                    {
                %>
                <option value="<%=list[i].Id %>"><%=list[i].Name %></option>
                <%
                    }
                %>
            </select>
        </div>

    </div>
    <!--表格头部按钮-->
    <div class="layui-row RowSpace">
        <div class="layui-panel margin0">
            <table id="UserList" lay-filter="UserList"></table>
            <!--文章列表-->
            <script>
                RenderTable("#UserList", '', '/CenterInc/view_json/admin/User_msg_json.aspx', true, [[
                    { field: 'caozuo', title: '操作', fixed: 'left', type: 'checkbox' }
                    , { field: 'Id', title: 'ID', sort: true }
                    , { field: 'Name', title: '用户名' }
                    , { field: 'Grade', title: '权限', sort: true }
                    , { field: 'Article_count', title: '文章数', sort: true }
                    , { field: 'Follow_count', title: '关注数', sort: true }
                    , { field: 'Fans_count', title: '粉丝数', sort: true }
                    , { field: 'Comment_count1', title: '评论数', sort: true }
                    , { field: 'Balance', title: '余额', sort: true }
                    , { field: 'ShopCount1', title: '消费', sort: true }
                    , { field: 'Level', title: '等级', sort: true }
                    , { field: 'Img', title: '头像' }
                    , { field: 'Email', title: '邮箱' }
                    , { field: 'toolbar', title: '操作', align: 'center', toolbar: '#table_bar' }
                ]], '', '', 'post');
                table_event();
            </script>
            <script type="text/html" id="table_bar" >
                <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
                <a class="layui-btn layui-bg-red layui-btn-xs" lay-event="del">删除</a>
            </script>
        </div>
    </div>
    <!--中部内容-->
</body>
</html>
